package com.mall.common.security.prop;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * token 配置类
 *
 * @author Sam
 */
@Component
@ConfigurationProperties(prefix = "custom.pho-token")
public class PhoTokenProp {

    /**
     * 密文
     */
    private static String secret;

    /**
     * 过期时间
     */
    private static long expire;

    /**
     * 文件路径
     */
    private static String filePath;

    /**
     * 资源映射路径 前缀
     */
    private static String prefix;


    public static String getSecret() {
        return secret;
    }

    public void setSecret(String secret) {
        PhoTokenProp.secret = secret;
    }

    public static long getExpire() {
        return expire;
    }

    public void setExpire(long expire) {
        PhoTokenProp.expire = expire;
    }

    public static String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        PhoTokenProp.filePath = filePath;
    }

    public static String getPrefix() {
        return prefix;
    }

    public void setPrefix(String prefix) {
        PhoTokenProp.prefix = prefix;
    }
}
